-- GENERATED SPELL FOR [Forlorn Soul] --


function spell0_24789(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(16583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24789', 594, 1)
end

function Sorts_24789(pUnit, Event)
local choix_sorts_24789 = math.random(0, 0)
if choix_sorts_24789 == 0 then
pUnit:RegisterEvent('spell0_24789', 1, 1)
end
end

function mob24789_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24789', math.random(1500, 3000), 1)
end

function mob24789_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24789_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24789_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24789, 1, 'mob24789_Action')
RegisterUnitEvent(24789, 2, 'mob24789_Leave')
RegisterUnitEvent(24789, 3, 'mob24789_Kill')
RegisterUnitEvent(24789, 4, 'mob24789_Die')
